
var curtable;
$(document).ready(function() {


					var tableWrapper = jQuery('#menuTable_wrapper');
					table.find('.group-checkable').change(function() {
						var set = jQuery(this).attr("data-set");
						var checked = jQuery(this).is(":checked");
						jQuery(set).each(function() {
							if (checked) {
								$(this).attr("checked", true);
								$(this).parents('tr').addClass("active");
							} else {
								$(this).attr("checked", false);
								$(this).parents('tr').removeClass("active");
							}
						});
						jQuery.uniform.update(set);
					});

					table.on('change', 'tbody tr .checkboxes', function() {
						$(this).parents('tr').toggleClass("active");
					});

					tableWrapper.find('.dataTables_length select').addClass("form-control input-xsmall input-inline"); // modify
					// table
					// per

					
				})

function getQueryCondition(data) {
	var param = {};
	// 组装排序参数
	/*
	 * if (data.order&&data.order.length&&data.order[0]) { switch
	 * (data.order[0].column) { case 1: param.orderColumn = "name"; break; case
	 * 2: param.orderColumn = "position"; break; case 3: param.orderColumn =
	 * "status"; break; case 4: param.orderColumn = "start_date"; break;
	 * default: param.orderColumn = "name"; break; } param.orderDir =
	 * data.order[0].dir; }
	 */
	// 组装查询参数
	// param.fuzzySearch = userManage.fuzzySearch;
	/*
	 * if (userManage.fuzzySearch) { param.fuzzy = $("#fuzzy-search").val();
	 * }else{ param.name = $("#name-search").val(); param.position =
	 * $("#position-search").val(); param.office = $("#office-search").val();
	 * param.extn = $("#extn-search").val(); param.status =
	 * $("#status-search").val(); param.role = $("#role-search").val(); }
	 */
	// 组装分页参数
	param.STARTINDEX = data.start;
	param.PAGESIZE = data.length;
	param.pid = $("#curSelNodeId").val();
	param.permission = $("#permission").val();
	param.name = $("#name").val();
	return param;
}
